#ifndef DOCUMENTMESSAGE_H
#define DOCUMENTMESSAGE_H

#include <QByteArray>
#include "Change/message.h"

class DocumentMessage : public Message
{
public:
	enum docType {TEXT, FORMATTED};

	DocumentMessage();
	DocumentMessage(QByteArray bytes);

	QByteArray toBytes();

	int getDocId() {return docId;}
	int getCreatorId() {return creator;}
	docType getDocType() {return type;}
	QString getTabName() {return tabN;}

	void setDocId(int newDocId) {docId = newDocId;}
	void setCreatorId(int cre) {creator = cre;}
	void setDocType(docType newType) {type = newType;}
	void setTabName(QString newTabN) {tabN = newTabN;}

private:
	int docId;
	int creator;
	docType type;
	QString tabN;
};

#endif // DOCUMENTMESSAGE_H
